package top.kaoshanji.q1ch05a.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 代码清单-q1ch05a-143页a：超级简单的控制器
 * @author kaoshanji
 * ^_^
 * create time 2025/4/24 9:33
 */
@Controller
// @RequestMapping("/")
public class HomeController {

    @RequestMapping(value = "/home", method = RequestMethod.GET)
    // @RequestMapping(method = RequestMethod.GET)
    public String homePage(Model model) {
        return "homePage"; // JSP 的文件名称
    }

}
